 import 'package:flutterstudyapplast/services/api/api.dart';
import 'package:flutterstudyapplast/services/user/user_service.dart';

import '../service_locator.dart';

class UserServiceImpl extends UserService{
  Api _api = serviceLocator<Api>();
  @override
  Future<Map<String, dynamic>> login(String username, String password) async{
    // TODO: implement login
    var result = await _api.login(username,password);
    if(result != null){
      return result;
    }
    return null;
  }

  @override
  Future<Map<String, dynamic>> register(String username, String password) async{
    // TODO: implement register
    var result = await _api.register(username,password);
    if(result != null){
      return result;
    }
    return null;
  }

 }